solving integrals